<?php /* @var $file Files */ ?>
<?php if( $file ):?>
    <?php echo image_tag('/images/gallery/tiny/' . $file->getUname()); ?>
<?php endif; ?>
<?php if ($sf_flash->has('saved')): ?>
  <?php echo $sf_flash->get('saved') ?>
<?php endif; ?>

<?php echo form_tag('files/editfile', 'method=post')?>
<?php echo input_hidden_tag('id', $file->getId()) ?>
<?php echo input_hidden_tag('parentid', $back) ?>
<?php echo __('name')?>
<?php echo input_tag('file[name]'
                        , $file? $file->getName() : ''
                        );?>
<?php echo __('text')?>:
<?php echo input_tag('file[text]'
                        , $file? $file->getText() : ''
                        );?>
                        
<?php echo submit_tag('Save') ?>
<?php echo link_to(__('Back'), 'gallery/edit?id=' . $back)?>
                        
</form>
